package com.zc.utils;

import com.zc.Enum.ErrorEnum;
import com.zc.exception.BusinessException;

/**
 * 处理异常工具类，进行调用
 */
public class ZcExceptionUtil extends RuntimeException {


    public static BusinessException display(ErrorEnum errorEnum) {
        throw new BusinessException(errorEnum);
    }

    public static BusinessException display(ErrorEnum errorEnum, String... params) {
        return new BusinessException(errorEnum, params);
    }

}
